//---------------- 返回顶部 ---------------------
const toTop = $(".toTop")
toTop.onclick = function () {
    scrollTo({
        top: 0,
        behavior: "smooth",
    });
};
//返回顶部按钮显示,隐藏
// 窗口滚动事件
window.onscroll = function () {
    if (scrollY >= 600) {
        toTop.style.display = "block";
    } else {
        toTop.style.display = "none";
    }
};